﻿using Abp.Domain.Values;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace shenghua.Common.CustomValueType
{
    [Owned]
    public class Address : ValueObject<Address>
    {
        public string Province { get; private set; }
        public string City { get; private set; }
        public string County { get; private set; }
        public string DetailedAddress { get; private set; }
        public string ZipCode { get; private set; }

        public Address(
            string province = "",
            string city = "",
            string county = "",
            string detailedAddress = "",
            string zipCode = "")
        {
            Province = province;
            City = city;
            County = county;
            DetailedAddress = detailedAddress;
            ZipCode = zipCode;
        }
    }
}
